Skip to content

fix(input): preserve IME composition in the history window - #88

Open
marvelph wants to merge 1 commit into
samirpatil2000:mainfrom
marvelph:fix/ime-composition
Open

marvelph wants to merge 1 commit into
samirpatil2000:mainfrom
marvelph:fix/ime-composition

Conversation

@marvelph

@marvelph marvelph commented Nov 6, 2026 •

Copy link
Copy Markdown

Summary

The history window's local key event monitor intercepts keys such as Up, Down, Return, and Escape during IME composition. This prevents those keys from being used for candidate selection, confirmation, and cancellation.

Return the event unchanged when the first responder is an NSTextView with marked text, allowing the standard text input system to handle it. Custom shortcuts handled by this monitor are not executed while composition is active.

Related to #43

Testing

  • Debug build succeeded with ad-hoc signing.
  • Manually verified with Japanese IME:
    • Candidate selection, confirmation, and cancellation in the search field work correctly.
    • IME input in the item editor works correctly, including Escape to cancel composition.
  • Swift syntax and diff whitespace checks passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant